package leetcode.code0058;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution58 implements IDebug {

	public abstract int lengthOfLastWord(String s);

	@Override
	public void debug1() {
		String s = "Hello World";
		int e = 5;
		debug(s, e);
	}

	private void debug(String s, int e) {
		int r = this.lengthOfLastWord(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = "   fly me   to   the moon  ";
		int e = 4;
		debug(s, e);
	}

	@Override
	public void debug3() {
		String s = "luffy is still joyboy";
		int e = 6;
		debug(s, e);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
